package com.label.grade.controller;/**
 * @author zhf
 * @date 2023/7/9 14:08
 * @version 1.0
 */

import com.label.Config.Logger.LogAnnotation;
import com.label.Model.Common.ResponseBean;
import com.label.grade.service.CetInfoService;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhf
 * 项目：student
 * 描述：四六级相关接口
 * @date 2023/7/9 14:08
 **/

@RestController
@CrossOrigin
@RequestMapping("/learninganalysis/cet")
public class CetController {

    @Resource
    private CetInfoService cetInfoService;

    @GetMapping("/getpart")
    @LogAnnotation(module = "四六级模块", operator = "获取所属学生的二课详细数据")
    @RequiresAuthentication
    public ResponseBean getPart(String instructorCode){
        return new ResponseBean(HttpStatus.SC_OK,"获取四六级信息成功", cetInfoService.getPartCetInfo(instructorCode));
    }
}
